.PHONY: all clean run
all: CopyStrings CopyStrings2 CopyInts CopyIntsToFile CopyIntsFromFile

CopyStrings: CopyStrings.cpp
	g++ -o CopyStrings CopyStrings.cpp
CopyStrings2: CopyStrings2.cpp
	g++ -o CopyStrings2 CopyStrings2.cpp
CopyInts: CopyInts.cpp
	g++ -o CopyInts CopyInts.cpp
CopyIntsToFile: CopyIntsToFile.cpp
	g++ -o CopyIntsToFile CopyIntsToFile.cpp 
CopyIntsFromFile: CopyIntsFromFile.cpp
	g++ -o CopyIntsFromFile CopyIntsFromFile.cpp 

clean:
	rm -f CopyStrings CopyStrings2 CopyInts CopyIntsToFile CopyIntsFromFile
run:
	@echo "---------run CopyStrings----------";
	@./CopyStrings
	@echo "---------run CopyStrings2---------";
	@./CopyStrings2
	@echo "---------run CopyInts-------------";
	@./CopyInts
	@echo "---------run CopyIntsToFile-------";
	@./CopyIntsToFile
	cat ints.out
	@echo "---------run CopyIntsFromFile-------";
	@./CopyIntsFromFile

